package com.partsoft.spring;

import org.springframework.beans.factory.xml.NamespaceHandlerSupport;

import com.partsoft.spring.support.DataSourceFactoryBeanDefinitionParaser;
import com.partsoft.spring.support.DataSourceMonitorBeanDefinitionParaser;
import com.partsoft.spring.support.DitsPropertyConfigurerBeanDefinitionParaser;

public class PartsoftNamespaceHandlerSupport extends NamespaceHandlerSupport {

	public void init() {
		registerBeanDefinitionParser(DitsPropertyConfigurerBeanDefinitionParaser.ElementName,
				new DitsPropertyConfigurerBeanDefinitionParaser());

		registerBeanDefinitionParser(DataSourceMonitorBeanDefinitionParaser.ElementName,
				new DataSourceMonitorBeanDefinitionParaser());

		registerBeanDefinitionParser(DataSourceFactoryBeanDefinitionParaser.ElementName,
				new DataSourceFactoryBeanDefinitionParaser());
	}

}
